package com.flux.models;

import com.common.bus.task.ICallBack;
import com.flux.core.dispatcher.DispatcherBackgroundExecutor;
import com.flux.models.bean.EventsRequest;
import com.flux.models.tasks.FetchEventsRunnable;

/**
 * Created by cxlin007 on 2017/10/30.
 */

public class DataModel implements IDataModel {

    private DispatcherBackgroundExecutor executor;

    @Override
    public void fetchEvents(EventsRequest request, ICallBack callBack) {
        executor.execute(new FetchEventsRunnable(request, callBack));
    }
}
